package com.example.demo.alex.mapper;

import com.example.demo.alex.model.Person;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName PersonMapper
 * @Description TODO
 * @Author zjg
 * @Date 2018/12/2514:43
 * @Version 2.0
 */
@Mapper
public interface PersonMapper {

    List<Person> findAllUser();

    Person findUserByid(Long id);

    Person  findUserByUserName(@Param("userName") String userName);
}
